<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<base
	href="<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
					+ request.getContextPath() + "/"%>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户中心</title>
<script type="text/javascript" src="statics/js/jquery-1.12.4.js" charset="UTF-8"></script>
<link rel="stylesheet"  type="text/css"  href="statics/css/agent.css"/>
<script src="statics/layer/layer.js"></script>
<script type="text/javascript" src="statics/js/user_address.js" charset="UTF-8"></script>
<script type="text/javascript">
	$(function(){
		//onclick="return confirm('确认删除？')" href="user/address?uaid=${user.uaId }"
		$('.user').on('click','.sc',function(){
			var uaid=$(this).attr('data-uaid');
			layer.confirm('确认删除？', {icon: 0, title:'提示'}, function(index){
				window.location.href="user/address?uaid="+uaid;
				layer.close(index);
			});
		})
	})
</script>
</head>
<body>
<jsp:include page="top.jsp"></jsp:include>
<div class="waikuan">
<%@ include file="/WEB-INF/jsp/user_menu.jsp"%>
<div class="user">
	<div class="user-title">租车人信息</div>
	<div class="user-content">
		<div class="hold">
			<div class="data-m">
				<span class="tq">联系人：</span>
				<input type="text" name="uaName" value="${param.uaName }" class="uaName">
			</div>
			<div class="data-e">
			<span class="prompt1">联系人不能为空</span>
			</div>
			<div class="data-m">
				<span class="tq">联系电话：</span>
				<input type="text" name="uaTel" value="${param.uaTel }" class="uaTel">
			</div>
			<div class="data-e">
			<span class="prompt2">电话号码格式不对</span>
			</div>
			<div class="data-m">
				<span class="tq">身份证号：</span>
				<input type="text" name="uaIdentity" value="${param.uaIdentity }" class="uaIdentity">
			</div>
			<div class="data-e">
			<span class="prompt3">身份证格式不对</span>
			</div>
			<button class="tj">添加</button>
		</div>
	<div class="xiugai">
			<div class="data-m">
				<span class="tq">联系人：</span>
				<input type="text" name="uaName" value="${param.uaName }" class="uaName">
			</div>
			<div class="data-e">
			<span class="prompt1">联系人不能为空</span>
			</div>
			<div class="data-m">
				<span class="tq">联系电话：</span>
				<input type="text" name="uaTel" value="${param.uaTel }" class="uaTel">
			</div>
			<div class="data-e">
			<span class="prompt2">电话号码格式不对</span>
			</div>
			<div class="data-m">
				<span class="tq">身份证号：</span>
				<input type="text" name="uaIdentity" value="${param.uaIdentity }" class="uaIdentity">
			</div>
			<div class="data-e">
			 <span class="prompt3">身份证格式不对</span>
			</div>
			<button class="keep" type="submit">保存修改</button><button class="cancel">取消修改</button>
		</div>
	</div>
	<div class="add-address">
		<div class="title" data-shu="${shu }">联系人信息</div>	
		<table >
			<tbody>
				<tr>
					<th width="22%">联系人</th>
					<th width="35%">身份证号</th>
					<th width="23%">联系方式</th>
					<th width="18%">操作</th>
				</tr>
				<c:forEach items="${usera}" var="user">
						<tr>
						<td>${user.uaName}</td>
						<td class="identity">${user.uaIdentity}</td>
						<td class="tel2">${user.uaTel}</td>
						<td>
							<a class="sc"  data-uaid="${user.uaId }">删除</a>
							 <a class="revise" data-uaid=${user.uaId } 
								 		data-uaName=${user.uaName} 
										data-uaIdentity=${user.uaIdentity}
							  			date-uaTel=${user.uaTel}>
							  	修改</a>
						</td>
						</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</div>
</div>
<jsp:include page="bottom.jsp"></jsp:include>
</body>
</html>